package com.woniuxy.hotel.setting.service;

import freemarker.template.Template;
import sun.util.resources.cldr.hu.TimeZoneNames_hu;

import java.io.Writer;
import java.util.Map;

/**
 * @Auther: desk-----xuzhiliang
 * @Date: 2019/8/9 17:02
 * @Description:
 */
public interface DownloadService {
    /**
    *@Description 模板翻译
    *@Param  * @param null
    *@Return
    *@Author desk-----xuzhiliang
    *@Date 2019/8/9
    *@Time 17:05
    */
    public Writer freemarkToHtml(String templateFilePath, String templateFileName, Map<String, Object> Data,
                                 String outFile) ;
    /**
    *@Description 翻译后的模板转xhtml
    *@Param  * @param null
    *@Return 
    *@Author desk-----xuzhiliang
    *@Date 2019/8/9
    *@Time 17:09
    */
    public String html2Xhtml(String html, String xhtml);
    /**
    *@Description xhtml转pdf
    *@Param  * @param null
    *@Return 
    *@Author desk-----xuzhiliang
    *@Date 2019/8/9
    *@Time 17:10
    */
    public void XHtml2Pdf(String xhtml, String pdf) throws Exception;
}
